

package com.ylbh.modules.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ylbh.common.pojo.home.vo.HomeStateStatisticsVO;
import com.ylbh.modules.app.entity.UserEntity;
import com.ylbh.modules.sys.entity.SysUserEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * 用户
 *
 * @author Mark sunlightcs@gmail.renren
 */
@Mapper
@Repository
public interface UserDao extends BaseMapper<UserEntity> {

    /**
     * 周新用户统计
     * @return
     */
    List<Integer> selectMonthCount(String monday,String tuesday,String wednesday,String thursday,String friday,String saturday,String sunday);

    /**
     * 待发货订单、待审核联盟店商品、待审核联盟店、待审核提现
     * @return
     */
    List<HomeStateStatisticsVO> selectHomeStateStatistics();

    /**
     * 今日订单总数、会员总数、今日销售总额、昨日销售总额、近七天销售总额、全部商品、福利商品、兑换商品
     * @param date 今天时间
     * @param time 今天的前一天
     * @param date1 今天的前七天
     * @return
     */
    List<Object> selectStatisticsNum(@Param(value = "date") Date date,@Param(value = "time") Date time,@Param(value = "date1") Date date1);

    Double selectVisitor(String date, String date2);

    Double queryCount();

    Double selectUnshipped();

    Double selectUnshippeds();

    Double selectNotLogin();

    SysUserEntity selectUserName(Long userId);
}
